home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2004 July / My Disc.iso / patch / UT2004 / ut2004-winpatch3236.exe / UT2004-Patch / System / UTClassic.u / HitLocation_TracerProjectile_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-06-11  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 74 19 63 6c 61 73 73 20 |........|t.class |
|00000010| 54 72 61 63 65 72 50 72 | 6f 6a 65 63 74 69 6c 65 |TracerPr|ojectile|
|00000020| 20 65 78 74 65 6e 64 73 | 20 50 72 6f 6a 65 63 74 | extends| Project|
|00000030| 69 6c 65 3b 0d 0a 0d 0a | 76 61 72 20 78 45 6d 69 |ile;....|var xEmi|
|00000040| 74 74 65 72 20 54 72 61 | 69 6c 3b 0d 0a 0d 0a 73 |tter Tra|il;....s|
|00000050| 69 6d 75 6c 61 74 65 64 | 20 66 75 6e 63 74 69 6f |imulated| functio|
|00000060| 6e 20 44 65 73 74 72 6f | 79 65 64 28 29 0d 0a 7b |n Destro|yed()..{|
|00000070| 0d 0a 20 20 20 20 69 66 | 20 28 20 54 72 61 69 6c |.. if| ( Trail|
|00000080| 20 21 3d 4e 6f 6e 65 20 | 29 0d 0a 09 09 54 72 61 | !=None |)....Tra|
|00000090| 69 6c 2e 6d 52 65 67 65 | 6e 3d 46 61 6c 73 65 3b |il.mRege|n=False;|
|000000a0| 0d 0a 09 53 75 70 65 72 | 2e 44 65 73 74 72 6f 79 |...Super|.Destroy|
|000000b0| 65 64 28 29 3b 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 |ed();..}|....simu|
|000000c0| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 62 |lated fu|nction b|
|000000d0| 6f 6f 6c 20 43 61 6e 53 | 70 6c 61 73 68 28 29 0d |ool CanS|plash().|
|000000e0| 0a 7b 0d 0a 09 72 65 74 | 75 72 6e 20 28 62 52 65 |.{...ret|urn (bRe|
|000000f0| 61 64 79 54 6f 53 70 6c | 61 73 68 20 26 26 20 28 |adyToSpl|ash && (|
|00000100| 4c 65 76 65 6c 2e 4e 65 | 74 4d 6f 64 65 20 21 3d |Level.Ne|tMode !=|
|00000110| 20 4e 4d 5f 53 74 61 6e | 64 61 6c 6f 6e 65 29 29 | NM_Stan|dalone))|
|00000120| 3b 0d 0a 7d 0d 0a 0d 0a | 73 69 6d 75 6c 61 74 65 |;..}....|simulate|
|00000130| 64 20 66 75 6e 63 74 69 | 6f 6e 20 50 6f 73 74 4e |d functi|on PostN|
|00000140| 65 74 42 65 67 69 6e 50 | 6c 61 79 28 29 0d 0a 7b |etBeginP|lay()..{|
|00000150| 0d 0a 09 6c 6f 63 61 6c | 20 50 6c 61 79 65 72 43 |...local| PlayerC|
|00000160| 6f 6e 74 72 6f 6c 6c 65 | 72 20 50 43 3b 0d 0a 09 |ontrolle|r PC;...|
|00000170| 6c 6f 63 61 6c 20 76 65 | 63 74 6f 72 20 44 69 72 |local ve|ctor Dir|
|00000180| 2c 4c 69 6e 65 50 6f 73 | 2c 4c 69 6e 65 44 69 72 |,LinePos|,LineDir|
|00000190| 2c 20 4f 6c 64 4c 6f 63 | 61 74 69 6f 6e 3b 0d 0a |, OldLoc|ation;..|
|000001a0| 09 0d 0a 09 69 66 20 28 | 20 28 4c 65 76 65 6c 2e |....if (| (Level.|
|000001b0| 4e 65 74 4d 6f 64 65 20 | 3d 3d 20 4e 4d 5f 43 6c |NetMode |== NM_Cl|
|000001c0| 69 65 6e 74 29 20 26 26 | 20 28 4c 65 76 65 6c 2e |ient) &&| (Level.|
|000001d0| 47 65 74 4c 6f 63 61 6c | 50 6c 61 79 65 72 43 6f |GetLocal|PlayerCo|
|000001e0| 6e 74 72 6f 6c 6c 65 72 | 28 29 20 3d 3d 20 4f 77 |ntroller|() == Ow|
|000001f0| 6e 65 72 29 20 29 0d 0a | 09 7b 0d 0a 09 09 44 65 |ner) )..|.{....De|
|00000200| 73 74 72 6f 79 28 29 3b | 0d 0a 09 09 72 65 74 75 |stroy();|....retu|
|00000210| 72 6e 3b 0d 0a 09 7d 0d | 0a 0d 0a 20 20 20 20 69 |rn;...}.|... i|
|00000220| 66 20 28 20 4c 65 76 65 | 6c 2e 4e 65 74 4d 6f 64 |f ( Leve|l.NetMod|
|00000230| 65 20 21 3d 20 4e 4d 5f | 44 65 64 69 63 61 74 65 |e != NM_|Dedicate|
|00000240| 64 53 65 72 76 65 72 20 | 29 0d 0a 20 20 20 20 7b |dServer |).. {|
|00000250| 0d 0a 20 20 20 20 20 20 | 20 20 69 66 20 28 20 21 |.. | if ( !|
|00000260| 50 68 79 73 69 63 73 56 | 6f 6c 75 6d 65 2e 62 57 |PhysicsV|olume.bW|
|00000270| 61 74 65 72 56 6f 6c 75 | 6d 65 20 29 0d 0a 20 20 |aterVolu|me ).. |
|00000280| 20 20 20 20 20 20 7b 0d | 0a 20 20 20 20 20 20 20 | {.|. |
|00000290| 20 20 20 20 20 54 72 61 | 69 6c 20 3d 20 53 70 61 | Tra|il = Spa|
|000002a0| 77 6e 28 63 6c 61 73 73 | 27 46 6c 61 6b 54 72 61 |wn(class|'FlakTra|
|000002b0| 69 6c 27 2c 73 65 6c 66 | 29 3b 0d 0a 20 20 20 20 |il',self|);.. |
|000002c0| 20 20 20 20 20 20 20 20 | 54 72 61 69 6c 2e 4c 69 | |Trail.Li|
|000002d0| 66 65 73 70 61 6e 20 3d | 20 4c 69 66 65 73 70 61 |fespan =| Lifespa|
|000002e0| 6e 3b 0d 0a 20 20 20 20 | 20 20 20 20 7d 0d 0a 20 |n;.. | }.. |
|000002f0| 20 20 20 7d 0d 0a 20 20 | 20 20 56 65 6c 6f 63 69 | }.. | Veloci|
|00000300| 74 79 20 3d 20 56 65 63 | 74 6f 72 28 52 6f 74 61 |ty = Vec|tor(Rota|
|00000310| 74 69 6f 6e 29 20 2a 20 | 28 53 70 65 65 64 29 3b |tion) * |(Speed);|
|00000320| 0d 0a 20 20 20 20 53 75 | 70 65 72 2e 50 6f 73 74 |.. Su|per.Post|
|00000330| 4e 65 74 42 65 67 69 6e | 50 6c 61 79 28 29 3b 0d |NetBegin|Play();.|
|00000340| 0a 0d 0a 20 09 2f 2f 20 | 73 65 65 20 69 66 20 6c |... .// |see if l|
|00000350| 6f 63 61 6c 20 70 6c 61 | 79 65 72 20 63 6f 6e 74 |ocal pla|yer cont|
|00000360| 72 6f 6c 6c 65 72 20 6e | 65 61 72 20 62 75 6c 6c |roller n|ear bull|
|00000370| 65 74 2c 20 62 75 74 20 | 6d 69 73 73 65 64 0d 0a |et, but |missed..|
|00000380| 09 50 43 20 3d 20 4c 65 | 76 65 6c 2e 47 65 74 4c |.PC = Le|vel.GetL|
|00000390| 6f 63 61 6c 50 6c 61 79 | 65 72 43 6f 6e 74 72 6f |ocalPlay|erContro|
|000003a0| 6c 6c 65 72 28 29 3b 0d | 0a 09 69 66 20 28 20 28 |ller();.|..if ( (|
|000003b0| 50 43 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 28 |PC != No|ne) && (|
|000003c0| 50 43 2e 50 61 77 6e 20 | 21 3d 20 4e 6f 6e 65 29 |PC.Pawn |!= None)|
|000003d0| 20 29 0d 0a 09 7b 0d 0a | 09 09 44 69 72 20 3d 20 | )...{..|..Dir = |
|000003e0| 4e 6f 72 6d 61 6c 28 56 | 65 6c 6f 63 69 74 79 29 |Normal(V|elocity)|
|000003f0| 3b 0d 0a 09 09 4c 69 6e | 65 50 6f 73 20 3d 20 28 |;....Lin|ePos = (|
|00000400| 4c 6f 63 61 74 69 6f 6e | 20 2b 20 28 44 69 72 20 |Location| + (Dir |
|00000410| 64 6f 74 20 28 50 43 2e | 50 61 77 6e 2e 4c 6f 63 |dot (PC.|Pawn.Loc|
|00000420| 61 74 69 6f 6e 20 2d 20 | 4c 6f 63 61 74 69 6f 6e |ation - |Location|
|00000430| 29 29 20 2a 20 44 69 72 | 29 3b 0d 0a 09 09 4c 69 |)) * Dir|);....Li|
|00000440| 6e 65 44 69 72 20 3d 20 | 50 43 2e 50 61 77 6e 2e |neDir = |PC.Pawn.|
|00000450| 4c 6f 63 61 74 69 6f 6e | 20 2d 20 4c 69 6e 65 50 |Location| - LineP|
|00000460| 6f 73 3b 0d 0a 09 09 69 | 66 20 28 20 56 53 69 7a |os;....i|f ( VSiz|
|00000470| 65 28 4c 69 6e 65 44 69 | 72 29 20 3c 20 31 35 30 |e(LineDi|r) < 150|
|00000480| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 4f 6c 64 4c | )....{.|....OldL|
|00000490| 6f 63 61 74 69 6f 6e 20 | 3d 20 4c 6f 63 61 74 69 |ocation |= Locati|
|000004a0| 6f 6e 3b 0d 0a 09 09 09 | 53 65 74 4c 6f 63 61 74 |on;.....|SetLocat|
|000004b0| 69 6f 6e 28 4c 69 6e 65 | 50 6f 73 29 3b 0d 0a 09 |ion(Line|Pos);...|
|000004c0| 09 09 69 66 20 28 20 46 | 52 61 6e 64 28 29 20 3c |..if ( F|Rand() <|
|000004d0| 20 30 2e 35 20 29 0d 0a | 09 09 09 09 50 6c 61 79 | 0.5 )..|....Play|
|000004e0| 53 6f 75 6e 64 28 73 6f | 75 6e 64 27 49 6d 70 61 |Sound(so|und'Impa|
|000004f0| 63 74 33 53 6e 64 27 2c | 2c 2c 2c 38 30 29 3b 0d |ct3Snd',|,,,80);.|
|00000500| 0a 09 09 09 65 6c 73 65 | 0d 0a 09 09 09 09 50 6c |....else|......Pl|
|00000510| 61 79 53 6f 75 6e 64 28 | 73 6f 75 6e 64 27 49 6d |aySound(|sound'Im|
|00000520| 70 61 63 74 37 53 6e 64 | 27 2c 2c 2c 2c 38 30 29 |pact7Snd|',,,,80)|
|00000530| 3b 0d 0a 09 09 09 53 65 | 74 4c 6f 63 61 74 69 6f |;.....Se|tLocatio|
|00000540| 6e 28 4f 6c 64 4c 6f 63 | 61 74 69 6f 6e 29 3b 0d |n(OldLoc|ation);.|
|00000550| 0a 09 09 7d 0d 0a 09 7d | 0d 0a 7d 0d 0a 0d 0a 73 |...}...}|..}....s|
|00000560| 69 6d 75 6c 61 74 65 64 | 20 73 69 6e 67 75 6c 61 |imulated| singula|
|00000570| 72 20 66 75 6e 63 74 69 | 6f 6e 20 54 6f 75 63 68 |r functi|on Touch|
|00000580| 28 41 63 74 6f 72 20 4f | 74 68 65 72 29 0d 0a 7b |(Actor O|ther)..{|
|00000590| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|000005a0| 20 66 75 6e 63 74 69 6f | 6e 20 50 72 6f 63 65 73 | functio|n Proces|
|000005b0| 73 54 6f 75 63 68 20 28 | 41 63 74 6f 72 20 4f 74 |sTouch (|Actor Ot|
|000005c0| 68 65 72 2c 20 76 65 63 | 74 6f 72 20 48 69 74 4c |her, vec|tor HitL|
|000005d0| 6f 63 61 74 69 6f 6e 29 | 0d 0a 7b 0d 0a 7d 0d 0a |ocation)|..{..}..|
|000005e0| 0d 0a 73 69 6d 75 6c 61 | 74 65 64 20 66 75 6e 63 |..simula|ted func|
|000005f0| 74 69 6f 6e 20 4c 61 6e | 64 65 64 28 20 56 65 63 |tion Lan|ded( Vec|
|00000600| 74 6f 72 20 48 69 74 4e | 6f 72 6d 61 6c 20 29 0d |tor HitN|ormal ).|
|00000610| 0a 7b 0d 0a 20 20 20 20 | 44 65 73 74 72 6f 79 28 |.{.. |Destroy(|
|00000620| 29 3b 0d 0a 7d 0d 0a 0d | 0a 73 69 6d 75 6c 61 74 |);..}...|.simulat|
|00000630| 65 64 20 66 75 6e 63 74 | 69 6f 6e 20 48 69 74 57 |ed funct|ion HitW|
|00000640| 61 6c 6c 28 20 76 65 63 | 74 6f 72 20 48 69 74 4e |all( vec|tor HitN|
|00000650| 6f 72 6d 61 6c 2c 20 61 | 63 74 6f 72 20 57 61 6c |ormal, a|ctor Wal|
|00000660| 6c 20 29 0d 0a 7b 0d 0a | 20 20 20 20 44 65 73 74 |l )..{..| Dest|
|00000670| 72 6f 79 28 29 3b 0d 0a | 7d 0d 0a 0d 0a 00 |roy();..|}..... |
+--------+-------------------------+-------------------------+--------+--------+